#include <iostream>
#include <fstream>
#include <string>
#include <sstream>

using namespace std;

int check(string str)
{
	int len = str.size();
	int check[256];
	for(int i =0;i<256;i++)
		check[i] = 0;

	int ascii;
	for(int i =0;i<len;i++)
	{
		ascii = (int)str[i];
		if(check[ascii]==0)
			check[ascii] = 1;
		else
			return 0;
	}

	return 1;
}

int main(int argc, char *argv[])
{
	if (argc<2)
	{
		printf("test file name needed\n");
		return 0;
	}

	printf("file name %s\n",argv[1]);
	char *filename = argv[1];
	ifstream infile(filename);
	string str;
	getline(infile, str);
	int number;
	istringstream  ss(str);
	ss >> number;
	if (number < 1)
	{
		cout << "no testcases?\n";
		return 0;
	}

	while(getline(infile, str))
	{
		if(check(str))
			cout << "yes, for " << str << endl;
		else
			cout << "no, for" << str << endl;
	}

	return 0;
}
